package com.shazhu.nongjt.domain;

import com.shazhu.common.annotation.Excel;
import com.shazhu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;

/**
 * 打印记录对象 njt_print_record
 * 
 * @author shazhu
 * @date 2024-09-28
 */
public class NjtPrintRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 合格证编号 */
    @Excel(name = "合格证编号")
    private String certificateNo;

    /** 打印机ID */
    @Excel(name = "打印机ID")
    private Long printerId;

    /** 打印用户ID */
    @Excel(name = "打印用户ID")
    private Long printUserId;

    /** 打印时间 */
    @Excel(name = "打印时间")
    private Date printTime;

    /** 打印状态:1-成功,2-失败 */
    @Excel(name = "打印状态:1-成功,2-失败")
    private Integer printStatus;

    /** 打印数据JSON */
    @Excel(name = "打印数据JSON")
    private String printData;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCertificateNo(String certificateNo) 
    {
        this.certificateNo = certificateNo;
    }

    public String getCertificateNo() 
    {
        return certificateNo;
    }
    public void setPrinterId(Long printerId) 
    {
        this.printerId = printerId;
    }

    public Long getPrinterId() 
    {
        return printerId;
    }
    public void setPrintUserId(Long printUserId) 
    {
        this.printUserId = printUserId;
    }

    public Long getPrintUserId() 
    {
        return printUserId;
    }
    public void setPrintTime(Date printTime) 
    {
        this.printTime = printTime;
    }

    public Date getPrintTime() 
    {
        return printTime;
    }
    public void setPrintStatus(Integer printStatus) 
    {
        this.printStatus = printStatus;
    }

    public Integer getPrintStatus() 
    {
        return printStatus;
    }
    public void setPrintData(String printData) 
    {
        this.printData = printData;
    }

    public String getPrintData() 
    {
        return printData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("certificateNo", getCertificateNo())
            .append("printerId", getPrinterId())
            .append("printUserId", getPrintUserId())
            .append("printTime", getPrintTime())
            .append("printStatus", getPrintStatus())
            .append("printData", getPrintData())
            .append("createTime", getCreateTime())
            .toString();
    }
}